<?php
require_once(dirname(__FILE__).'/inc/header.php');
echo loadMod('glob/header');

$data_social = new data_social();
if ($_GET['dinto'] === 'weibo' or $_GET['dinto'] === 'renren' or $_GET['dinto'] === 'kaixin001' or $_GET['dinto'] === 'qqwb') {		// 直接进入授权页面
	echo '
		<script type="text/javascript">location.href="'.$data_social->get_authorize_url($_GET['dinto'], 'iframe').'"</script>
	';
} else {
	echo '
		<table align="center" width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td align="center" style="padding-top: 50px;">
					<span style="font-size:56px; font-family:Arial Black, Arial; color:#ACF; margin:0 0 0 20px;">uRead</span>
					<span style="font-size:56px; font-family:Arial Black, Arial; color:#DDD; margin:0 0 0 5px;">•</span>
					<span style="font-size:56px; font-family:Arial Black, Arial; color:#F96; margin:0 10px 0 5px;">Me</span>
				</td>
			</tr>
			<tr>
				<td align="center" style="font-size:12px; color:#999; border-bottom:1px solid #EEE;">
					值得你保存下来的，就推荐给朋友吧
				</td>
			</tr>
			<tr>
				<td align="center" style="padding:50px 0;">
					<a href="'.$data_social->get_authorize_url('weibo', 'iframe').'">
						<img src="/images/login_weibo.png" title="点击进入新浪微博授权页面" alt="点击进入新浪微博授权页面" border="0" />
					</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="'.$data_social->get_authorize_url('renren', 'iframe').'">
						<img src="/images/login_renren.png" title="点击进入人人网授权页面" alt="点击进入人人网授权页面" border="0" />
					</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="'.$data_social->get_authorize_url('kaixin001', 'iframe').'">
						<img src="/images/login_kaixin001.png" title="点击进入开心网KaiXin001授权页面" alt="点击进入开心网KaiXin001授权页面" border="0" />
					</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="'.$data_social->get_authorize_url('qqwb', 'iframe').'">
						<img src="/images/login_qqwb.png" title="点击进入腾讯微博授权页面" alt="点击进入腾讯微博授权页面" border="0" />
					</a>
				</td>
			</tr>
		</table>
	';
}
require_once(dirname(__FILE__).'/inc/footer.php');
?>